Map the Response Payload as a String

There are cases when you might want to save the entire JSON /XML response payload as a string in a DRUID entity (without mapping the specific fields in the JSON content) and pass it to other external services.

To save the entire response payload as a string, follow these steps:

  1. From the Response Body Content Type field, select JSON or XML based on the expected response type.
  2. In the mapping table, click the Add icon next to the mapping line.
  3. Leave the Connector field name field empty.
  4. From the Connector field type field, select Text.

  5. In the Druid entity field name, type [[, select the entity, then select the entity field where you want to save the full JSON response payload as string. The entity field you select here needs to be a string-type field.
  6. Click the Save icon next to the mapping line.
  7. Save the integration task.
HINT: The entire response payload object will be stringified and saved in the specified DRUID field.

Example: Full JSON response payload as string mapping